package com.cans.model.pms;

import com.cans.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author cans
 * @date 2018/6/6
 * @description 菜单
 */
@Entity
@Table(name = "sys_menu")
public class SysMenu extends BaseModel {

    /**
     * 父级编号
     */
    @Column(name = "parent_id",length = 32)
    private String parentId;
    /**
     * 编码
     */
    @Column(name = "code",length = 50)
    private String code;
    /**
     * 名称
     */
    @Column(name = "name",length = 50)
    private String name;
    /**
     * 相对路劲
     */
    @Column(name = "uri")
    private String uri;
    /**
     * 排序号
     */
    @Column(name = "f_index")
    private Integer index;

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }
}
